home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Topik / Topik - Disk 06 - Graphix (19xx)(Topik Public Domain)(PD)[WB].zip / Topik - Disk 06 - Graphix (19xx)(Topik Public Domain)(PD)[WB].adf / GIF / GIF2IP.doc < prev    next >
Text File  |  1989-06-28  |  2KB  |  49 lines

  1. Why would you want to convert GIF files to an obscure Amiga file format which
  2. requires commercial software?
  3.  
  4. Because this was the quickest, dirtiest way to get rid of those ugly artifacts
  5. you have to contend with when displaying 256 (or more) color GIF files in HAM
  6. mode on the Amiga.  Unfortunately, all of the IFF screen grabbers I've seen
  7. save from the screen, so they naturally keep the artifacts.  In addition, 
  8. images in GIF are stored with the full bits/pixel resolution as specified by 
  9. the accompanying palette.  HAM mode pixels use inferred colors by operations on
  10. previous pixels and are inherently less accurate than a true bitmap.
  11.  
  12. The best solution is to go to the file data and work with it from there.  This
  13. program loads the GIF file into memory and writes it out as a DigiView IP file
  14. which consists of the three planes (RGB) written one right after the other with
  15. a resolution of up to 7 bits per primary color.  Since Digi-View is the only
  16. program which allows you to perform operations on bitmaps with up to 21 bits/
  17. pixel, it is the only obvious (and best) choice.  To make the IP format easier
  18. to work with, each pixel plane is padded with one bit to event things out to a
  19. byte.  So for a 320 by 200 image an IP file consists of 3 (RGB) 64000 byte 
  20. contiguous segments followed by a 12 byte file header for a total of 192012 
  21. bytes.
  22.  
  23. IP files can be loaded into DigiView by using the standard Load selection on
  24. the menu.  When loaded the panel will have to be set to defaults, so if the 
  25. picture starts to display a little wierd, then check the control panel.  After
  26. you get the pic looking like you want, you can save it IFF.  I've had problems
  27. loading IP files larger than the 320 by 200 size with v3.0 of DigiView.  I have
  28. no problems with v2.0.  My belief is that IP was not fully implemented for 
  29. v3.0.
  30.  
  31. You can only load IP files as follows (by size):
  32.  
  33. 320 by 200 (interlace off):        192012
  34. 320 by 400 (interlace on):        384012
  35. 640 by 400 (hi res/interlace on):    768012
  36.  
  37. Hope someone else finds this useful,
  38.   Wolfgang Kurtz, CIS 71410,724
  39.                   (907) 258-4754 - Arctic Byte BBS
  40.                   (907) 337-4136 - Northern Lights BBS
  41.                   (907) 696-0886 - Eagles Eyrie BBS (9600 Baud HST)
  42.  
  43. P.S.  Thanks to Lee Crocker for the basic code.
  44.  
  45. Coming soon:
  46.   Convert SIT, PIT, MAC files (Macintosh)
  47.   Convert EGA/VGA files (IBM)
  48.  
  49.